package cn.javaxc.mvcwork.framework.filters;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class RefuseAccessFilter implements Filter {
	public void destroy() {
	}
	public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException,
			ServletException {
		HttpServletRequest request = (HttpServletRequest)req;
		HttpServletResponse response = (HttpServletResponse) res;
		response.sendError(HttpServletResponse.SC_FORBIDDEN, request.getRequestURI());
	}
	public void init(FilterConfig arg0) throws ServletException {
	}
}
